package com.lp.biz.content.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.io.Serial;
import lombok.Data;

/**
 * biz_course_comment实体类
 * 课程评论
 * @program: backend
 * @author Ke.Song
 * @since 2024-08-26 21:48:26
 */
@Data
@TableName("biz_course_comment")
public class BizCourseComment implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 评论人id
     */
    private Integer memberId;

    /**
     * 被评论人id
     */
    private Integer commenteeId;

    /**
     * 评论/回复内容
     */
    private String content;

    /**
     * 类型，1: 评论, 2: 回复
     */
    @TableField("`type`")
    private Integer type;

    /**
     * 所回复的id
     */
    private Integer parentId;

    /**
     * 回复所属的评论id
     */
    private Integer bizCourseCommentId;

    /**
     * 课程id
     */
    private Integer bizCourseId;

    /**
     * 课程章节id
     */
    private Integer bizChapterId;

    /**
     * 创建时间
     */
    private LocalDateTime createAt;

    /**
     * 是否删除
     */
    private Integer isDeleted;


}
